package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.ActivityScope;
import com.kaiwukj.android.ufamily.mvp.model.AccountModel;
import com.kaiwukj.android.ufamily.mvp.ui.page.account.AccountContract;

import dagger.Module;
import dagger.Provides;

@Module
public class AccountModule {

    private AccountContract.View view;
    private AccountContract.CommunityView communityView;
    private AccountContract.EditView editView;

    public AccountModule(AccountContract.EditView view) {
        editView = view;
    }

    public AccountModule(AccountContract.CommunityView view) {
        communityView = view;
    }

    public AccountModule(AccountContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public AccountContract.EditView provideEditView() {
        return editView;
    }

    @ActivityScope
    @Provides
    public AccountContract.View provideView() {
        return view;
    }

    @ActivityScope
    @Provides
    public AccountContract.CommunityView provideCommunityView() {
        return communityView;
    }

    @ActivityScope
    @Provides
    public AccountContract.Model provideModel(AccountModel model) {
        return model;
    }
}
